<html>
<head>
<title>全局配置</title>
{% include "systy.html" %}
</head>
<body>
{% ifnotequal username None%}
{% include "head1.html" %}
<div class="taskadd_div">
    <div class="location_div">位置：全局配置 >> 邮箱配置 </div>
    <form action="" method="post">
    <div class="input-group">
        <span class="input-group-addon">SMTP 地址</span><input type="text" name="mailsmtp" value="{{mailsmtp}}" class="taskadd_taskname form-control">
    </div></br>
    <div class="input-group">
        <span class="input-group-addon">发送者帐号</span><input type="text" name="mailuser" value="{{mailuser}}" class="taskadd_taskname form-control">
    </div></br>
    <div class="input-group">
        <span class="input-group-addon">发送者密码</span><input type="password" name="mailpass" value="{{mailpass}}" class="taskadd_taskname form-control">
    </div></br>
    <div class="input-group">
        <span class="input-group-addon">发送者邮件</span><input type="text" name="mailfrom" value="{{mailfrom}}" class="taskadd_taskname form-control">
    </div></br>
    <div class="config_div">
        <button type="submit" class="btn btn-primary btn-sm hostadd_button" {% ifnotequal userpermissions "运维经理" %} disabled="disabled" {% endifnotequal %}> 提 交 </button>
    </div>
    </form>
</div>

{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}
</body>
</html>